-- GENERATED SPELL FOR [Defias Raider] --


function spell0_6180(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_6180', 638, 1)
end

function spell1_6180(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6180', 594, 1)
end

function Sorts_6180(pUnit, Event)
local choix_sorts_6180 = math.random(0, 1)
if choix_sorts_6180 == 0 then
pUnit:RegisterEvent('spell0_6180', 1, 1)
end
if choix_sorts_6180 == 1 then
pUnit:RegisterEvent('spell1_6180', 1, 1)
end
end

function mob6180_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6180', math.random(1500, 3000), 1)
end

function mob6180_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6180_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6180_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6180, 1, 'mob6180_Action')
RegisterUnitEvent(6180, 2, 'mob6180_Leave')
RegisterUnitEvent(6180, 3, 'mob6180_Kill')
RegisterUnitEvent(6180, 4, 'mob6180_Die')
